﻿using BackTask.Core.Builders;
using BackTask.SqlServer;

namespace BackTask.Configurations.Builders
{
    public static class BaseTaskJobSqlServerBuilderExtension
    {
        public static TaskJobBuilder UseSqlServer(this TaskJobBuilder baseTaskJobBuilder, string connectionString)
        {
            var configuration = new SqlServerConfiguration();
            configuration.UseConfiguration(connectionString);
            baseTaskJobBuilder.UseTaskConfiguration(configuration);
            return baseTaskJobBuilder;
        }
    }
}
